Elliptic Curve Integrated Encryption Scheme using x25519
Example Usage
use ;
use ;
let mut os_rng = default;
let recv_kp = generate_keypair.unwrap;
let recv_pub_key = parse_openssl_25519_pubkey_der.unwrap;
let recv_priv_key = parse_openssl_25519_privkey_der.unwrap;
let message = "I 💖🔒";
let ecies_inst = new;
// Encrypt the message with the public key
let encrypted_data = ecies_inst.encrypt.unwrap;
// Decrypt the message with the private key
let decrypted_data_bytes = ecies_inst.decrypt.unwrap;
println!;